<?php
namespace soa\orders\v1;

use soa\client;

class allot extends client{
    /**
     * @var string
     */
    protected $service_url = 'http://order.core.kuaidihelp.com/';

    /**
     * @var string
     */
    protected $service_name = 'kuaidihelp_order2';

    //订单指派给网点
    public function shop($order_id,$index_shop_id,$manipulator = "")
    {
        return $this->post('v1/allot/shop', ["orderNo" => $order_id,"index_shop_id" => $index_shop_id,"manipulator" => $manipulator]);
    }

    //订单指派给快递员
    public function courier($order_id,$courier_id,$manipulator = "")
    {
        return $this->post('v1/allot/courier', ["orderNo" => $order_id,"courier_id" => $courier_id,"manipulator" => $manipulator]);
    }
}